#ifndef _GAME_LIB_H_
#define _GAME_LIB_H_

#include "Threading/AtomicCounter.h"

void LoadServerID(bool isBattle = false);
void  CreateGameLibs(void);
void LoadGameWorld(const bool & skip_check_db = false);

String  common_decrypt(const String & cryptString);

extern uint32 topWorldStartStatus;
extern Threading::AtomicCounter        s_loadThreadNum;

extern String	config_string;

//CURL 获取函数  timeout 为请求超时的秒数，如果设置为0, 则表示用不超时
extern String  httpd_request(const String & url, const int & timeout = 0, const String &  method = "GET", const String & postData = "");
#endif
